/*
 * SocketHexMap.fx
 *
 * Created on Sep 5, 2009, 4:53:53 PM
 */

package fxbattle.fxgui;

import fxbattle.client.model.Direction;
import fxbattle.client.coms.BattleMapSocketUpdater;

/**
 * @author spina
 */

public class SocketHexMap extends HexagonMap {

    public var updater: BattleMapSocketUpdater;

    override public function toggleFlowPath(row: Integer, col: Integer, dir: Direction): Void{
        var curHex = map.getHex(row, col);
        updater.sendRequest(curHex.getLocation(), curHex.getAdjacentHex(dir).getLocation(), not curHex.isFlowPathActive(dir));
    }


}
